package com.jh.paymentchannel.repository;

import com.jh.paymentchannel.pojo.SDJArea;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface SDJAreaRepository extends JpaRepository<SDJArea, String>, JpaSpecificationExecutor<SDJArea>{
	
	
	@Query(" select sdj.code from SDJArea sdj where sdj.name = :name")
	public String getSDJAreaByName(@Param("name") String name);
	
}
